﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="Admin_Topic.aspx.cs" Inherits="QiCms.Web.Admin.Admin_Topic" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="QBSCmsContentPlaceHolder" runat="server">
    <form id="TableForm" runat="server">
     <div class="tpl-content-wrapper">
        <ol class="am-breadcrumb">
            <li><a href="Index.aspx" class="am-icon-home">首页</a></li>
            <li class="am-active">专题管理</li>
        </ol>
        <div class="tpl-portlet-components">
            <div class="portlet-title">
                <div class="caption font-green bold"><span class="am-icon-bars"></span> 专题列表</div>
            </div>

            <div class="tpl-block">
                <div class="am-g">
                    <div class="am-u-sm-12 am-u-md-6">
                        <div class="am-btn-toolbar">
                            <div class="am-btn-group am-btn-group-xs">
                                <button type="button" class="am-btn am-btn-default am-btn-success" onclick="window.location.href='Admin_TopicMg.aspx?Act=Add';" ><span class="am-icon-plus"></span> 新增专题</button>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="am-g">
                    <div class="am-u-sm-12">
                                <asp:DataGrid ID="TopicGrid" runat="server" OnItemCommand="TopicGrid_ItemCommand" OnItemDataBound="TopicGrid_ItemDataBound" Width="100%" GridLines="None" CssClass="am-table am-table-striped am-table-hover table-main">
		                            <Columns>
                                        <asp:BoundColumn DataField="Topicid" HeaderText="ID" ItemStyle-Width="5%"></asp:BoundColumn>
			                            <asp:HyperLinkColumn DataTextField="TopicName" DataTextFormatString="<img alt='内容专题' src='/template/admin/images/admin_topic.gif' border='0' />{0}" HeaderText="专题名称" ItemStyle-Width="50%"></asp:HyperLinkColumn>
				                        <asp:BoundColumn DataField="AddTime" DataFormatString="{0:yyyy年MM月dd日}" HeaderText="添加日期" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="25%"></asp:BoundColumn>
			                            <asp:TemplateColumn ItemStyle-CssClass="am-btn-group am-btn-group-xs" HeaderText="操作" ItemStyle-Width="100%">
				                            <ItemTemplate>
                                                <asp:LinkButton ID="EditBtn" runat="server" CommandName="Edit" CssClass="am-btn am-btn-default am-btn-xs am-text-secondary"><span class="am-icon-pencil-square-o"></span>编辑</asp:LinkButton>
					                            <asp:LinkButton ID="DeleteBtn" runat="server" CommandName="Delete" CssClass="am-btn am-btn-default am-btn-xs am-text-danger am-hide-sm-only"><span class="am-icon-trash-o"></span>删除</asp:LinkButton>
				                            </ItemTemplate>
			                            </asp:TemplateColumn>
		                            </Columns>
	                            </asp:DataGrid>
                    <hr>
                    </div>
                    <div class="am-cf">
                        <div class="am-fr">
                            <ul class="am-pagination tpl-pagination">
                                <%= Pagination %><%= NextPrev %>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
            <div class="tpl-alert"></div>
        </div>
    </div>
    </form>
</asp:Content>
